package jf.jextn.converter;

public class FloatConverter extends NumberConverter<Float> {
    public final static FloatConverter INSTANCE = new FloatConverter();

    @Override
    protected Float from(String value, int radix) {
        return Float.valueOf(value);
    }

    @Override
    protected String to(Float value, int radix) {
        return Float.toString(value.floatValue());
    }

    @Override
    public void setRadix(int radix) {
        throw new UnsupportedOperationException("radix not supported by float converter");
    }
}
